package cn.sw.api.auth.login;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "cloud-auth", contextId = "loginid")
@RequestMapping("/login")
public interface LoginApi {
    @PostMapping("/login")
    String login(@PathVariable("username") String username, @PathVariable("password") String password);
}
